import VueRouter from 'vue-router'
import Vue from "vue";
import Templates from "@/components/Templates";
import Main from "@/views/Main";
import Login from "@/views/Login";
import Redis from "@/views/Redis";
import WaresTypeManage from "@/views/WaresTypeManage";
import WaresManageDetailType from "@/views/WaresManageDetailType";
import WaresManage from "@/views/WaresManage";
import WaresManageDetail from "@/views/WaresManageDetail";


Vue.use(VueRouter)

export default new VueRouter({
    mode: 'hash',
    routes:[
        {
            path: "/Home",
            component: Templates,
            children:[
                {
                    path: 'Main',
                    component:Main
                },
                {
                    path: 'Redis',
                    component: Redis
                },
                {
                    path: 'WaresTypeMange',
                    component: WaresTypeManage
                },
                {
                    path: 'WaresManageDetailType',
                    component: WaresManageDetailType
                },
                {
                    path: 'WaresManage',
                    component: WaresManage
                },
                {
                    path: 'WaresManageDetail',
                    component: WaresManageDetail
                }
            ]
        },
        {
            path: '/',
            component: Login
        },
    ]
})
